import WxmpRsa from 'wxmp-rsa'

const rsa = new WxmpRsa()
const publicKey = `
  -----BEGIN PUBLIC KEY-----
  MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDZW86SYYQJZd9EvpYPOEEuKADO6Q0ZKHd9vAfYFqAzP0VCHIEI4T5hEScrGB51A/yERnP4We2k1PtSMlt+r4jhotzfVB+w+UUi+he/5dEZ1QKILJ/eZL2o4dn6sOrSjSQnxJKSeCfA0r05mmi6HpmhhRxypFCeFbDUaWtT2JXKVwIDAQAB
  -----END PUBLIC KEY-----
`
rsa.setPublicKey(publicKey)

const encryptLong = (str) =>{
   return rsa.encryptLong(str)
}

export {
	encryptLong
}


